package com.migo.utils;

import java.util.HashMap;
import java.util.Map;


/**
 * Created by Wes on 2019/1/15.
 */
public class ProductType {

    public static Map product;

    private ProductType() {}
    private static final ProductType single = new ProductType();

    //静态工厂方法
    public static ProductType getInstance() {
        product = new HashMap();
        product.put("PowerEgg","1");
        product.put("PowerEye","2");
        product.put("PowerRay","3");
        product.put("PowerDolphin","3");
        product.put("PowerSeeker","4");
        product.put("PowerEgg mini","5");
        return single;
    }


    public static Map getProduct() {
        return product;
    }

    public static void setProduct(Map product) {
        ProductType.product = product;
    }

}
